﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPagePrivate.master" autoeventwireup="true" inherits="Pages_Private_PropertyForRentChange, BtcHousing" stylesheettheme="ServerControls" %>
<%@ Register Src="~/UserControls/jQueryCalendar.ascx" TagName="jQueryCalendar" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
    <UC:jQueryCalendar ID="ucjQueryCalendar" runat="server" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Add Property for Rent</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>
    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--PropertyToRent Information Group Box Start--%>        
        
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="Property For Rent"></asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="Define Your Property for Rent."></asp:Label></div>
            </div>
            <div class="StepBody">
                <table cellpadding="3" cellspacing="0" style="width:100%;">
                    <colgroup>
                        <col style="width:15%;" />
                        <col style="width:35%;" />                    
                        <col style="width:15%;" />                
                        <col style="width:35%;" />                                        
                    </colgroup>

				    <tr>
					    <td>Rent Type<span class="requiredMark">*</span></td>
					    <td>
						    <asp:DropDownList ID="ddlRentTypeID" runat="server"></asp:DropDownList>
						    <asp:RequiredFieldValidator ID="rfvRentTypeID" runat="server"
							    ControlToValidate="ddlRentTypeID" SetFocusOnError="true"
							    ErrorMessage="Please Select a Rent Type." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
					    <td>Rent Status<span class="requiredMark">*</span></td>
					    <td>
						    <asp:DropDownList ID="ddlRentStatusID" runat="server"></asp:DropDownList>
						    <asp:RequiredFieldValidator ID="rfvRentStatusID" runat="server"
							    ControlToValidate="ddlRentStatusID" SetFocusOnError="true"
							    ErrorMessage="Please Select a Rent Status." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>Expire Date<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtExpireDate" MaxLength="10" CssClass="CalendarTextBox" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvCompanyID" runat="server"
							    ControlToValidate="txtExpireDate" SetFocusOnError="true"
							    ErrorMessage="<br/>Please Select an Expire Date." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvExpireDate" runat="server"
							    ControlToValidate="txtExpireDate" SetFocusOnError="true"
							    ClientValidationFunction="ValidateDate"
							    ErrorMessage="<br/>Please Select a Valid Date." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:CustomValidator>
					    </td>
					    <td>Size<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtSize" MaxLength="4" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvSize" runat="server"
							    ControlToValidate="txtSize" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Size." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
						    <asp:CompareValidator ID="cpvSize" runat="server"
							    ControlToValidate="txtSize" SetFocusOnError="true"
							    Operator="DataTypeCheck" Type="Integer"
							    ErrorMessage="Please Enter Digits Only." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:CompareValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>No Of Beds<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtNoOfBeds" MaxLength="4" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvNoOfBeds" runat="server"
							    ControlToValidate="txtNoOfBeds" SetFocusOnError="true"
							    ErrorMessage="Please Enter a No Of Beds." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
						    <asp:CompareValidator ID="cpvNoOfBeds" runat="server"
							    ControlToValidate="txtNoOfBeds" SetFocusOnError="true"
							    Operator="DataTypeCheck" Type="Integer"
							    ErrorMessage="Please Enter Digits Only." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:CompareValidator>
					    </td>
					    <td>Monthly Rent<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtMonthlyRent" MaxLength="9" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvMonthlyRent" runat="server"
							    ControlToValidate="txtMonthlyRent" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Monthly Rent." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
						    <asp:CompareValidator ID="cpvMonthlyRent" runat="server"
							    ControlToValidate="txtMonthlyRent" SetFocusOnError="true"
							    Operator="DataTypeCheck" Type="Double"
							    ErrorMessage="Please Enter Digits Only." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:CompareValidator>
					    </td>
				    </tr>
                    <tr>
                        <td>Service Charge<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtServiceCharge" MaxLength="9" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvServiceCharge" runat="server"
							    ControlToValidate="txtServiceCharge" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Service Charge." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
						    <asp:CompareValidator ID="cpvServiceCharge" runat="server"
							    ControlToValidate="txtServiceCharge" SetFocusOnError="true"
							    Operator="DataTypeCheck" Type="Double"
							    ErrorMessage="Please Enter Digits Only." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:CompareValidator>
					    </td>
                        <td colspan="2"></td>
                    </tr>
				    <tr>
					    <td>Country<span class="requiredMark">*</span></td>
					    <td>
						    <asp:DropDownList ID="ddlCountry" runat="server" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
						    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
							    ControlToValidate="ddlCountry" SetFocusOnError="true"
							    ErrorMessage="Please Select a Country." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>						    
					    </td>
					    <td>City<span class="requiredMark">*</span></td>
					    <td>
						    <asp:DropDownList ID="ddlCityID" runat="server" OnSelectedIndexChanged="ddlCityID_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
						    <asp:RequiredFieldValidator ID="rfvCityID" runat="server"
							    ControlToValidate="ddlCityID" SetFocusOnError="true"
							    ErrorMessage="Please Select a City." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>Zone<span class="requiredMark">*</span></td>
					    <td>
						    <asp:DropDownList ID="ddlZoneID" runat="server"></asp:DropDownList>
						    <asp:RequiredFieldValidator ID="rfvZoneID" runat="server"
							    ControlToValidate="ddlZoneID" SetFocusOnError="true"
							    ErrorMessage="Please Select a Zone." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
					    <td>Address<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtAddress" MaxLength="250" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvAddress" runat="server"
							    ControlToValidate="txtAddress" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Address." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>Has Parking?</td>
					    <td>
						    <asp:CheckBox ID="chkHasParking" runat="server"/>
					    </td>
					    <td>Has Generator?</td>
					    <td>
						    <asp:CheckBox ID="chkHasGenerator" runat="server"/>
					    </td>
				    </tr>
				    <tr>
					    <td>Has Lift?</td>
					    <td>
						    <asp:CheckBox ID="chkHasLift" runat="server"/>
					    </td>
					    <td>Other Utility</td>
					    <td>
						    <asp:TextBox ID="txtOtherUtility" MaxLength="150" runat="server"></asp:TextBox>
					    </td>
				    </tr>
				    <tr>
					    <td>Photo</td>
					    <td>
                            <div id="divImageThumb" class="ProjectThumbImage" runat="server" visible="false"></div>
						    <asp:FileUpload ID="fuImage" runat="server" />
                            <asp:CustomValidator ID="cvImage" runat="server"
                                Display="Dynamic" SetFocusOnError="true"
                                OnServerValidate="cvImage_OnServerValidate"
                                ErrorMessage="Please select a valid Image file."
                                ValidationGroup="SaveInfo"
                                ValidateEmptyText="true">
                            </asp:CustomValidator>
					    </td>
					    <td>Description</td>
					    <td>
						    <asp:TextBox ID="txtRemark" TextMode="MultiLine" lengthoftext="300" runat="server"></asp:TextBox>
					    </td>
				    </tr>
				    <tr>
					    <td>Is Active?</td>
					    <td>
						    <asp:CheckBox ID="chkIsActive" runat="server"/>
					    </td>
					    <td colspan="2">&nbsp;</td>
				    </tr>				
                </table>
            </div>
            <div class="StepButtonContainer">
                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />            
                <asp:Button ID="btnList" runat="server" Text="Rent List" CssClass="ButtonInActive" OnClick="btnList_Click" />            
            </div>
        </div>
        <%--PropertyToRent Information Group Box End--%>
   </asp:Panel> 
</asp:Content>

